package com.bill.learn.mapper;

import com.bill.learn.entity.Employee;
import com.bill.learn.entity.EmployeeDTO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Bill Ludwig; 2020/5/16 21:48
 */
@Mapper
@Repository
public interface EmployeeMapper {

    int addEmployee(Employee employee);

    int deleteEmployee(int id);

    int updateEmployee(Employee employee);

    List<EmployeeDTO> getEmployees();

    Employee getEmployeeById(int id);
}
